Use the temp dir for saving the scratch buffer