private String getCurrentPath(String... command) throws IOException {
    ProcessBuilder builder = new ProcessBuilder(command);
    builder.redirectErrorStream(true);
    Process p = builder.start();
    BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String path = r.readLine();
    return path;
  }
This test case is strange that it relies on the maven output files
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/script/EnvScriptIT.java