TISTUD-2843 Fixing the shell environment to the command

The sudo command always require the shell executable environment for the execution, otherwise it might fail with command not found error code.