private static Stream<Path> executables(Path base) {
		if (isWindows()) {
			return Stream.of(Paths.get(base.toString() + ".exe"),
					Paths.get(base.toString() + ".bat"),
					Paths.get(base.toString() + ".cmd"),
					Paths.get(base.toString() + ".ps1"));
		} else {
			return Stream.of(base);
		}
	}
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