Modified the regex to strip arch from kernel version

Here's the new pull request with the requested changes.