private Path getNativeImageOutputName() {
		Path image = ctx.getNativeImageFile();
		if (Util.isWindows()) {
			// NB: On Windows the compiler always adds `.exe` to the name!
			// So we remove the extension from the name before returning it
			image = image.getParent().resolve(Util.base(image.getFileName().toString()));
		}
		return image;
	}
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