select_folder_dialog: cleaned up, works good enough for me now.