Fix proxy env format

The incorrect format (e.g. http_proxy=http://proxy.bos.example.com:8080) gave this error: "environment must be a dictionary".
Merge pull request #2224 from cliffano/patch-1

Fix proxy env format