Detect duplicate filenames