code: public static String getPathOr(String var, String def) {
          String path = AcePathfinder.INSTANCE.getPath(var);
          if (path == null) {
              path = def;
          }
          return path;
      }
docs: Get a valid path from the pathfiner, or if not found, a user-specified path.