private static void copy(Path source, Path dest) {
    try {
      Files.copy(source, dest);
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }
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