Improved the mangling of the release candidate versions (1.0-rc2 -> 1.0~rc2)