ENH : checkout current HEAD in git_rev not given

If the git_url is local and a git_rev is not given, then assume
that we want to build off of the current HEAD
BUG : fix  git-related envs being blow away

Update the globals with more specific envs later.
Merge pull request #238 from tacaswell/git_head

Git head