Specify working directory at job definition

The commits allow the user to specify a directory when defining a job. 

Eg.