Fixed ELFMAG check to work for either byte order.