Create the directory for the debug_logfile (RIPD-551)

You are right - thanks, will fix.