Avoid switching directories

There's no need to change directories. Git can run from anywhere :)

This also is less prone to errors / problems when you have a CDPATH set (alternatively, you'd want to `unset CDPATH` at the start of the script to avoid weird things going on, or having all the paths printed to the console when running the script).