Create the directory for the debug_logfile (RIPD-551)

I always double-flush