public String resolve(String scriptRef) {
		String ref = scriptRef;
		if (!Util.isAbsoluteRef(ref)) {
			String base = catalog.getScriptBase();
			if (Util.isRemoteRef(base) || !Util.isValidPath(base)) {
				ref = base + "/" + ref;
			} else {
				ref = Paths.get(base).resolve(ref).toString();
			}
		}
		return ref;
	}
This method returns the given scriptRef with all contextual modifiers like
baseRefs and current working directories applied.
src/main/java/dev/jbang/catalog/CatalogItem.java