make output dir prior to log