Puppet 3 compatibility

`crm` fails if HOME is unset (it insists on loading `$HOME/.crm_history`).

I've added a conditional that explicitly sets `HOME=/root` if puppetversion >= 3.

Not sure if this is the right approach.

Tested on 2.6 and 3.0.