updates to support all versions in master branch

- OS version detection based on kernel version