Refactored code and added unit tests

- Extracted ParseRelease method from GetKernelVersion to make code
  more testable
- Added tests for ParseRelease method