get OS/kernel on linux/osx