Only assign `env` to `__env__` if it's a string