Sets the current working directory.
$this
public function setWorkingDirectory(string $cwd) : static { $this->cwd = $cwd; return $this; }