ensure gem ownership and force rubygems downgrade