fix creating temp files on non-unix platforms
fix creating temp files on non-unix platforms

penhauer-xiao/logrus,sirupsen/logrus,penhauer-xiao/logrus,freeformz/logrus,Sirupsen/logrus,yxd-hde/logrus,sirupsen/logrus