Change chdir to cd in system command.