bug fix, report generation failed if target directory didn't exist