fn get_toml_path(dir: &Path) -> Result<Option<PathBuf>, Error>