code: CommandLine getCommandLine() {
          if (getWorkingDirectory() == null) {
              if (commonsExecCommandLine.isFile()) {
                  File exec = new File(commonsExecCommandLine.getExecutable());
                  File dir = exec.getParentFile();
                  if (dir == null) {
                      throw new IllegalStateException(
                              "directory MUST be set (and could not be auto-determined from executable, although it was a File)");
                  }
                  this.setWorkingDirectory(dir);
                  // DO NOT } else {
                  // throw new
                  // IllegalStateException("directory MUST be set (and could not be auto-determined from executable)");
              }
          }
          return commonsExecCommandLine;
      }
docs: /* package-local... let's keep ch.vorburger.exec's API separate from Apache Commons Exec, so it
  COULD be replaced