mkfimg: bug fix to cksum