Set PATH earlier
Only do git stuff if git dir exits