[PATCH 01/17] env: Avoid checking ENV_IS_IN when env disabled