Update PWD env var when setting working directory on execute jobs.
We actually properly set the working directory, but when scripts
rely on the PWD env var, and we don't update that, things can break.
This patch simply updates the PWD env var if set before to the new
working directory before running the job.