Replace dashes with underscores in RPM version strings. Fixes #393.

This makes any build of an RPM file change its version string if it contains dashes, since dashes are not allowed by RPM version strings.

It also changes the dependency list of an RPM. If any of the dependencies have a version string with dashes, the dependency list gets changed to underscores.