[Crash-utility] [PATCH V2] Refactor kernel version checking code