fixes the way the iOS running version is determined (the previous one was broken)