Update version.rb

Confirm generating new version before writing to version file