Check rubygems version as it can be updated

Gem::Package#build appers on rubygems 2.0, see https://github.com/rubygems/rubygems/blob/1.8.23/lib/rubygems.rb