mkbootimg.c: fix read fail;
unpackbootimg.c: create output directory before unpack;