Added the option to specify the base directory for temp files for when we are using the multiprocess mode.