consolidate env variables in `env` option