private static Path findNearestLocalConfigWithKey(Path dir, String key) {
		return Util.findNearestWith(dir, Configuration.JBANG_CONFIG_PROPS, configFile -> {
			Configuration cfg = Configuration.read(configFile);
			return cfg.containsKey(key) ? configFile : null;
		});
	}
Will either return the path to the given config or search for the nearest
config starting from cwd.

@param config The config to return or null to return the nearest config
@return Path to a config
src/main/java/dev/jbang/util/ConfigUtil.java