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

skip ci
I do need it. Looked like rearranging would cause issues with the streamreaders not existing.