fix: If repository uses non-semantic version tags, generated version was mangled. + test