Pass exact Git version to compiler

Inspired by https://github.com/mitchellh/packer/blob/master/packer/version.go