Upgrade Rakefile to support current RubyGems versions