Fix osx detect