Add ability to detect current rubygems version