Fix Windows error when backup file doesn't fire and rename fails