Create the directory for the debug_logfile (RIPD-551)

Please verify the behavior of WriteLog when it is called before a log file is actually opened. AT this point do we even have the deprecatedLogs singleton? Please check.