Set GIT_DIR environment variable when executing git checkout.

This is the work around for using meteorite inside a git hook script.
Since in a post-receive git hook, GIT_DIR variable is always set to ".",
so when you executing `git checkout`, it will fail. The work around is
just manually set GIT_DIR to the .git inside the package.