write the rename script to a file instead of renaming on the fly. it is
better in case the script is interrupted in the middle and need to
resume.
added progress status.