[kcoredirlister] Fix sub path creation
Differential Revision: https://phabricator.kde.org/D9442
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>