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