static S firstCmdOnPATH_mandatory(S... cmds) { for (S cmd : cmds) if (onPATH(cmd)) ret cmd; fail("None of the commands found on PATH: " + asList(cmds)); }