fix create tmp dir for macos