configure: make the pdflatex check use the tempdir