kpatch-build: detect core dump