Properly handle generation of sdist Git hashes

Now, the Git hash module is appropriately generated when running cabal sdist.
Fix source locations for generated version number
Merge pull request #762 from david-christiansen/show-git-in-version-2

Properly handle generation of sdist Git hashes