helper shell function to manage sslocal session and osx system proxy setting