Filter out duplicates when searching for files + housecleaning.