teardown git after restoring the env
since we mangle PATH in some of our tests the previous order was actually wrong as PATH would point somewhere without git and as a result the git commands would fail