Allow the working diretory to be specified.