pub fn resolve_executable(exec: &Path) -> Result<PathBuf>
Returns the absolute path of where the given executable is located based on searching the PATH environment variable.
PATH
Returns an error if it cannot be found.