Fix rebase empty files

Fixes #20.
The existing fix in charleso/git-cc@ccf628d is not working.

Solution:
If there is no "checkinversion" in "lshistory" then check if there is
3 items in the history (mkelemfile, mkelembranch, mkelemversion)
or 5 items (mkelemfile, mkelembranch, mkelemversion, mkbranchbranch, mkbranchversion)
If so then this file is created as an empty one and download it with proper version.