Test: test-headers.sh: Modify the C++ check again.
When building under mock, CXX is always set even though the program is
not present in the build root because we do not BuildRequires it. So,
we additionally need to check that the program exists.