before starting script create output directory