Updated upgradePuppet to work better on Amazon Linux and ignore amzn repos