Fixed environment variable for WSGI and CLI

Refs #44