Added support for puppet 3.x

Puppet 3.x changed the --configpring command to config print, this
commit detects the version of puppet that is installed on the system
and executes the correct method to get the statedir, based on the
version.