private static String resolveInGraalVMHome(String cmd, Jdk jdk) {
		String newcmd = resolveInEnv("GRAALVM_HOME", cmd);

		if (newcmd.equals(cmd) &&
				!new File(newcmd).exists()) {
			return JavaUtil.resolveInJavaHome(cmd, jdk);
		} else {
			return newcmd;
		}
	}
Based on the jar path this will return the path for the output file to be
passed to the native-image compiler. NB: On Windows the compiler always adds
`.exe` to the name!
src/main/java/dev/jbang/source/buildsteps/NativeBuildStep.java