fixed repo_to_home script