build: Accept version numbers with prereleases containing dashes
build: Accept version numbers with prereleases containing dashes

Previously we'd discard everything after the second dash.

hashicorp/terraform,hashicorp/terraform,hashicorp/terraform