pub fn get_up_dir(up_dir_opt: Option<&PathBuf>) -> PathBuf
Get the base up working directory, used for logging, backing up files etc.