changes to use pdflatex in the current folder, for auto-pst-pdf to work