Remove references to "env" from cmd.script/cmd.script_retcode

The replacement of env with saltenv makes these unused and therefore
able to be removed.

Resolves #9002.