Cleaned up setupReportDir, to write reports when either reportFolder is passed or report set to true