Fix ruby and gem on osx