Got rid of all Dir.chdir

They where causing concurency problems
Generating report in new thread