[Bug 44016] Improve path handling in Open and Save dialogs