change gem install status check to gem list and grep