Fix puppet.sh scripts to actually honor PUPPET_VERSION

There are some puppet.sh scripts that execute `gem install puppet` prior to
evaluating PUPPET_VERSION. This results in installing the latest version of
Puppet instead of the one specified in PUPPET_VERSION.