kpatch script improvements