private static boolean isExecutable(Path file) {
		if (Files.isRegularFile(file)) {
			if (isWindows()) {
				String nm = file.getFileName().toString().toLowerCase();
				return nm.endsWith(".exe") || nm.endsWith(".bat") || nm.endsWith(".cmd") || nm.endsWith(".ps1");
			} else {
				return Files.isExecutable(file);
			}
		}
		return false;
	}
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