repack-ramdisk: change patch logic