For starters, `which pdflatex` won't work otherwise. My painful testing discovered it was necessary, and it took like 10 Travis builds to find out.