Just use first 6 digits SHA1 if no tag is present

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