Finally fixed API Version checker to work as expected