Dealing with issue #355; magic bit file detection on the c++ code

skip ci
This was breaking things. Fixed now.