mkbootimg: Fix incorrect SHA1 hash computation
mkbootimg: Fix automatic mode