Set the cwd of 'patch' to be the tempdir.

This isn't usually necessary, but at least one person reported an instance
where it was (probably depending on their version of the `patch` command), and
it doesn't hurt anything.

Fixes bug 2065.