Fix check for non null keys in os.environ