Allow using of other TeX tools, e.g. xelatex.
Rename run_pdflatex -> run_tex
Fix Dir.chdir in Task::PublishPDF has side-effects.