fix scan.py for broken logs
I have captured a couple examples of .correction files that have incomplete lines
apparently when the machine died the other day it has been brutal, in a snap, a call to `write` was interrupted in mid-air