[PATCH 0/3] Refactor kernel image and initrd detection code