Create the directory for the debug_logfile (RIPD-551)

Will verify and resort to `std::cerr` if necessary.