Revert "issue6291: experiment to make test case commandLine/api/cd.html work"

This reverts commit d45b6a246e44eeefa731c6a03d6791bcce636421.
issue6291: another fix to make test case commandLine/api/cd.html work