cmdutils: add missing const qualifier