docs: private static String getUserHome() {
          String userHomeProperty = System.getProperty("user.home");
          String userHomeEnv = System.getenv("HOME");
          if (userHomeEnv == null) return userHomeProperty;
          int propertyCount = userHomeProperty.split("/").length;
          int envCount = userHomeEnv.split("/").length;
          return propertyCount <= envCount ? userHomeProperty : userHomeEnv;
      }