Fix typo in check_cmd