reporting: fix echo command in system searches for pdflatex
reporting: search for pdflatex.exe on windows
reporting: in windows, replace native filesep with forward slash for inclusion in tex file