fix for issue with determining SDK version