Proxy config support

Setting the environment variable often doesn’t work so add it in
properly for the agent