Skip directories in index file search