image: fix CONFIG_EXTERNAL_CPIO handling