private static OptionalInt findGradleWorkerClasspathArg(List<String> command) {
    return IntStream.range(0, command.size())
        .filter(i -> GRADLE_WORKER_CLASSPATH_FILE_PATTERN.matcher(command.get(i)).matches())
        .findFirst();
  }
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