Fix environment variable for WSGI and CLI