fix removing rubygems - use proper ruby, fix #2489