fix for mac osx

mktemp in osx (maybe bsd at large) does not work without a template