Allow handling NPM version numbers with hyphens

NPM allows version numbers to have hyphens.  Arch forbids it.  Replace all
hyphens with underscores for the Arch version of generated packages.
This allows packaging things like "yo", which is currently version
"1.0.0-beta.3".