detect linux/osx