fn search_path( agent: &str, name: &str, path_var: Option<&OsStr>, config_file: &Path, ) -> Result<Found>