Critial bugfix: dirlog rebuild target path string empty in certain cases

Signed-off-by: nixnodes <code@nixnodes.net>