Fix rbinstall tool to work with newer rubygems.

The rbinstall.rb tool monkey-patches rubygems.  This monkey-patching
needs to be updated to work with the newer version or rubygems.