Puppet 3 compatibility

`crm` fails brutally if HOME is unset (it tries to load `$HOME/.crm_history` for some reason).

I've added a conditional that explicitly sets `HOME=/root` if puppetversion >= 3.

Not sure if this is the right approach, advice appreciated.

Tested on 2.6 and 3.0.