Create the directory for the debug_logfile (RIPD-551)

Maybe this should be cleaned up later, but none of these variables should be all caps.