iconfigSSH v.5.2

simplify code for doesFolderExist