pub fn reroot_path(path: Option<PathBuf>) -> Result<PathBuf>