Fix install error of rubygems without stdlib
Merge pull request #2773 from ryoqun/rubygems-without-stdlib

Fix install error of rubygems without stdlib