Updates to support upgrade of rubygems to latest (v2.4.1) in the MK.
This version introduced some interesting errors in the local gem
mirror; and these changes (including monkey-patching of the
Gem::RemoteFetcher class) are meant to work around those errors.