Support old history files

Fixes grnet/kamaki#80

Kamaki history files must have an offset counter on the first line,
since version 0.11.

With this fix, kamaki supports older history files and adds the
default offset counter at the first line.