use shutil.move instead of os.rename

when moving config files

closes #5898