Refine select folder dialog behaviour