Add shell-escape to pdflatex command line