OSX detection added