Making the duplicate filename check work for subsettable files too.