make sure the log directory is created