Recover if proxy to rubygems is unreachable

I haven't fully fleshed this out with tests yet, but wanted to get something up
that worked to see if there was interest in it.

Also there's a fix for a recently merged patch with ENV['http_proxy']