Derive artifact version from git branch/tag.