should be `command[0]`, not pdflatex