Updated regex for newer versions of puppet

The regex for parsing state.yaml is incorrect for more recent versions of puppet.

All credit to @djmitche(https://github.com/djmitche)

Perhaps adding in a check based on the version of puppet installed would make sense here to switch between the 2 different regular expressions.