added os.path.exists check before moving files