Using simple sanity check for now, like comparing first bytes of file header, later more sophisticated methods can be implemented.
Added automatic determination.