Update puppet if it is already installed

If the system already have puppet installed and it is not updated to the latest version the installer will fail. Because this the script should update puppet gem or package if it is already installed.

This will fix the installation when using the centos virtualbox vagrant box provided by the Vagrantfile.