Add CFGDIR configuration and install cfg directory.

cppcheck is broken without the CFGDIR. This is related to Issue #26049.