Translate versions to be rubygems compatible

Currently just replaces '-' with '.'
Cherry-picked 63887b06a6101302e23f4 to incorporate pull request to upstream (https://github.com/rodjek/librarian-puppet/pull/90)