fixed searching for index files