Also deprecated wrong `env` usage in the `cmd` state.