compile-pdf executing pdflatex within resources dir