Create the directory for the debug_logfile (RIPD-551)

If I'm reading this correctly, you're only creating the folder if the `DEBUG_LOGFILE` is relative. The two `if` blocks should be independent instead of nested.