generateTestReport fixed for BSD shells