update custom boot.img generator to prevent build force stop

Change-Id: Ied8df46179c22848e6d49f1bc0c141fa7b24e5f1