Fix off-by-one error in report generation
Make reports' temporary file parameters configurable