Allow work directory to be specified