Fixed the usage of passing proxy setting to open-uri module.

The old way, using the :proxy parameter does not work in a proxy environment. Set the proxy options works. This also works for proxy without authentication.