Fix a typo, slightly refactor no_version code in gem.rb