Properly handle generation of sdist Git hashes

Now, the Git hash module is appropriately generated when running cabal sdist.