public static Path searchPath(String cmd, String paths) {
		return Arrays.stream(paths.split(File.pathSeparator))
			.map(dir -> Paths.get(dir).resolve(cmd))
			.flatMap(Util::executables)
			.filter(Util::isExecutable)
			.findFirst()
			.orElse(null);
	}
Searches the locations defined by `paths` for the given executable

@param cmd   The name of the executable to look for
@param paths A string containing the paths to search
@return A Path to the executable, if found, null otherwise
src/main/java/dev/jbang/util/Util.java