fixing autodection of proxies. Make sudo calls use -E to preserve environment
adding two examples scripts to test setting of env variables