use method of determining system version that works on 6 SDK