fix rubygems for older ubuntu's