Add an option 'tmpDir' to specify where temporary build folders will be in.