Update versioning check to correctly resolve api ver.