Just use first 6 digits SHA1 if no git tag is present

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