Fix setting of env vars in git_test