fn resolve_existing_prefix(path: &Path) -> Result<PathBuf, String>
Canonicalize the longest existing prefix so symlink hops are visible.