Add heuristic to distinguish between Component Pascal and C++ for .cp files