code: public static List<String> cmdWithWorkingDir(String[] command, String workindDir, final long timeout)
          throws IOException, InterruptedException {
          return cmd(command, null, null, timeout, workindDir);
      }
docs: Executes command, and waits for the expected phrase in console printout.
  
  @param command    command line
  @param workindDir working directory
  @param timeout    in millisecond
  
  @return console output as a list of strings
  
  @throws IOException          for command error
  @throws InterruptedException when interrupted