improved the way how is extracted the kernel version