build: Handle packages with dashes in --find-version.