Fix detection of need to re-run LaTeX, avoiding infinite loop.

We used to check for "Rerun" in the log, but newer versions of the
hyperref package produce this word all the time; now we check for
"Rerun to get".
Ignore generated files.