BUG: added binary check. Fixed #988
BUG: added binary check. Fixed #988

Former-commit-id: 6bac6a24707c814954bf691ccce19d1ecf56ee6e
Former-commit-id: 994434c042886e13fa89ea10b1e3f855c3ed3f08
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox