fn canonicalize_dir(dir: &Path) -> Result<PathBuf>