Use the correct dialog for directory selection.