Conditional execution for gem install.