Puppet 3 fixes, cleanup

Puppet 3 does not preserve HOME environment variable, causing openssl command to bomb.

Corrected a typo in tests/x509_cert.pp.