Use only the filename when deciding if a file is a duplicate.