Fix environment variable conditional for MongoDB