Added direct support for finding distinct filenames