Write log file to /tmp
Replace Printf with Fatalf and get rid of debugging log