More robust logfile parsing, skipping incorrectly formatted lines. Fixes #260.