try requiring rubygems first