Update version.rb to support Semantic Versioning prerelease version strings

Title says it all. Fix for issue #4