support old versions (<1.8) of rubygems