changeDir

Changes the working directory of the spawned process.

directory must exist, otherwise the process will fail to be spawned.