Using path.basename for generating report file name