A fix for invocation where cwd gets lost.

We don't need to manually massage cwd now that programDirectory is separate.