correctly check ios version