Correctly handle old log files