Fix fetchGitData tests

Restored process.env "cleanup", but make sure to preserve PATH so
Windows doesn't freak out trying to find git