generate temp folder on mac correctly