change setting of proxy base on node.js code
(https://github.com/joyent/node/blob/master/deps/npm/node_modules/npmconf/config-defs.js#L232)