issue6291: another fix to make test case commandLine/api/cd.html work