Add {pdf,lua,xe}latex 

These changes improve the regex to match pdflatex and fixes an incorrect error shown if there was nothing to do.