Incorporate AgentJobClient-related changes to ShellTask (for jobs run on the local machine).