This adds a new option to change the root directory of where the index files get stored.
I mainly added this because I am doing profiling of indexing and needed a way for multiple instances of index files not to conflict with each other.
The extact naming of variables and the help text can be changed, I just guessed.
I tried to add a test for the change however I couldn't find a way to neatly check storage root directory. I am not sure if the test I've written is all that helpful.
clang-format: please reformat the code