rename all files before rename by rules to avoid target name existing.