God... replace nonsense with a sensible way to retrieve iOS/OSX version