pub fn apply_sudo(name: &str, args: &[String]) -> (String, Vec<String>)
Ported from ApplySudo, wired to the real environment.
ApplySudo