allow to ignore rubygems installation, fix #2504