mtree: fix line filename length calculation

Fixes issue 301.