Auto detect duplicated file names.