Put some sanity checks in the gem install routine