Fixed version name generation to comply with tag naming rules.