[Indexer] Remove duplicate file and empty dirs