Translate versions to be rubygems compatible

Currently just replaces '-' with '.', which is the only non-rubygems-friendly character I've seen used in Puppet versions.

Addresses #83.