Added messed up OSX temp path handling