Use `cd` instead of the resource's `cwd`