configure: improve pdflatex check