Fixed OSX detection