Make sure build scripts have access to Git data

The version script depends on having Git data to determine a version.