Default to the SHA-1 of HEAD if the contents of git-describe are not available.

This happens when a tag has not been created in the git repository.