Added gem version check