Fix the cmdcallback demo to create the logfile correctly.