Properly set up environment for managed-mode obfsproxy