Clean up little/big endian check