[IMP] Make pdflatex path configurable
[FIX] don't fail if no ip address is available
[FIX] superfluous } breaking pdf generation