initSearchPaths can add more than one directory, small code refactoring in index
3.0.10