Improved pdflatex script