fn set_global_root(tmp_dir: Option<&'static str>)