create logfile path if it doesn't exist

Resolves #8957
actually creating the data dir is wrong as soon as the logfile config setting is used and points to a location outside the data dir - nice catch @nickvergessen