Use git clone instead of shutil.copy--hopefully this will work better to ensure the copy of package_template remains a valid git repo