If no git tag is present, just use first 6 digits SHA1

Fixes a bug causing gitinfo to fail if no tag is present in the git repository