Fix git commands
Fix scripts if not in git repo