Fixed osx detection