Prevent git directory contamination.

By specifying --git-dir now, installing from tarballs is now much, much less
likely to be affected by unrelated git repositories in higher-level
directories. This was causing issues for some users.