Fixes #3383: Disable proxy and override env var on curl calls

http://www.rudder-project.org/redmine/issues/3383

To be merged in the 2.3 branch.