[FileNameSearch] Avoid repeated searches when following symlinks
Filenamesearch repeats searches when following symlinks to an already searched folder, giving duplicaticated results.
The existing logic prevents the search following circular references.