fix string formation bug when adding subfiles/folders