Require rubygems to avoid uninitialized constant Gem

Require 'rubygems' to avoid problems using Gem::Version:
err: Could not run Puppet configuration client: Could not retrieve local facts: uninitialized constant Gem