Added the logic to change working directory when compiling .tex files in
task-latex(7) so that images and any other external files can be
resolved relative to the source .tex file.