Major issue: blank directory names written during dirlog rebuild (only
in certain cases) (rev. 19)

Signed-off-by: nixnodes <code@eth.si>