Fix director crash on dir command with long filenames

Fixes #383: dir command in bconsole crash bareos-dir