Platform detection, make things smarter about OSX/Linux