move environment setting to separate function
move environment setting to separate function

certik/openconnect,sihde/openconnect,mdutton3/OpenConnect,lins05/openconnect,brandt/openconnect,liiir1985/openconnect,certik/openconnect,neshema/openconnect,brandt/openconnect,mveplus/openconnect-client,lins05/openconnect,mtmiller/openconnect,sihde/openconnect,matlockx/openconnect,atyndall/openconnect,chadcatlett/openconnect,cernekee/openconnect,atyndall/openconnect,pbrook/openconnect,mveplus/openconnect-client,ldx/android_external_openconnect,lins05/openconnect,neshema/openconnect,don-johnny/openconnect,matlockx/openconnect,lins05/openconnect,matlockx/openconnect,sihde/openconnect,cernekee/openconnect,mdutton3/OpenConnect,pbrook/openconnect,nmav/openconnect-mine,brandt/openconnect,cernekee/openconnect,liiir1985/openconnect,jku/openconnect,atyndall/openconnect,chadcatlett/openconnect,chadcatlett/openconnect,mdutton3/OpenConnect,mtmiller/openconnect,cernekee/openconnect,mveplus/openconnect-client,neshema/openconnect,matlockx/openconnect,atyndall/openconnect,mveplus/openconnect-client,don-johnny/openconnect,liiir1985/openconnect,don-johnny/openconnect,nmav/openconnect-mine,brandt/openconnect,don-johnny/openconnect,ldx/android_external_openconnect,liiir1985/openconnect,mtmiller/openconnect,nmav/openconnect-mine,neshema/openconnect,nmav/openconnect-mine,certik/openconnect,mtmiller/openconnect,jku/openconnect,chadcatlett/openconnect