Enhanced nexecd to handle the SET_ENV command.