Fix loading of search index in sub directories