Correctly detect C/C++ file types.