private static String resolveInEnv(String env, String cmd) {
		if (System.getenv(env) != null) {
			Path dir = Paths.get(System.getenv(env)).toAbsolutePath().resolve("bin");
			Path cmdPath = Util.searchPath(cmd, dir.toString());
			return cmdPath != null ? cmdPath.toString() : cmd;
		} else {
			return cmd;
		}
	}
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