Use os.tmpDir for storing temporary files