pub fn which(name: &str) -> ScriptResult<Option<PathBuf>>
Finds the full path to an executable.
Returns an error if the executable is not found.