Making certificate creation work on puppet > 2.6

The old command "puppetca" is replaced by "puppet cert" in newer
versions of puppet. This patch tries to detect which version of
puppet to use.