mkimage: support for gnu grep