Need to ensure the log directory exists