Fix selecting directories in getexistingdirectory dialog
When running kdialog --getexistingdirectory
it seems that on some systems it doesn't allow to pick a directory as expected because it wants the user to select a file. This change addresses that by allowing the user to pick a directory.