make cli work with rubygems 2