common: introduce get_linux_version()

This replaces a "hacky get_kernel_vesion in osd/* somewhere" with the
"nice version" ;), and fixes a minor bug while at it.