Correctly create directory structure for non-existing logfile paths