private static Catalog findNearestCatalog(Path dir) {
		Path catalogFile = Util.findNearestWith(dir, JBANG_CATALOG_JSON, p -> p);
		return catalogFile != null ? get(catalogFile) : null;
	}
Returns a Catalog containing all the aliases from local catalog files merged
into one. This follows the system where aliases that are "nearest" have
priority.

@param includeImplicits Determines if the implicit catalogs should be merged
                        or not
@return a Catalog object
src/main/java/dev/jbang/catalog/Catalog.java