Update unpackbootimg to support second and tags