Duplicate and rename  aware about multiple  extensions