corrected temp folder and file paths for mac