cppcheck: make sure /cfg/ is installed

Fixes #33583.