private void upgradeRelativePaths(List<String> command) {
    for(int i =0 ; i < command.size(); i++) {
      String element = command.get(i);
      final Matcher matcher = RELATIVE_PARENT_DIRECTORY_PATTERN.matcher(element);
      //TO be platform independent, we will capture the syntax used (../ or ..\) and
      //simply duplicate that in the command line string to become (../../ or ..\..\)
      element = RELATIVE_PARENT_DIRECTORY_PATTERN.matcher(element).replaceAll("$1$1");
      command.set(i, element);
    }
  }
Replace all occurrences of "../" that are not proceeded by a / in the command with "../../"
to match the new working directory of the process. This fixes issues with java agent commands
like jacoco that pass relative paths, eg "-agentlib:../tmp/jacocoXXX=../jacoco/test.txt
@param command the command line to upgrade. It will be modified in place.
build-tools/geode-testing-isolation/src/main/java/org/apache/geode/gradle/testing/isolation/WorkingDirectoryIsolator.java