CQM: remove bashisms pointed out by checkbashisms.