Fixed cert chains in Ruby 2+

Updated monkey-patch for Net::HTTP in Ruby 2.0.0+