fix renaming condition (using basename)