Adds error checking when puppet fails internally

Adds regular expressions to the puppet error
check for the case in which the puppet
installation is broken.

Change-Id: Ic0da9605bdc7169d94ed43620ed2f5e6292301e4
Fixes: rhbz#958587