removing functions matching __, rvm and rubygems properly