Files.app: Refactor local file path resolution utility for file dialog.