Fixed null check logic on env config, wasn't working at all before

Fix for Issue #22