Selective sync dialog: fix fetching sub directory when the folder is not the root folder