fix c project config commands to properly handle C++

fixes #294