Fail to run cannot find $HOME

```
-> % puppet --version
3.0.0
```

```
2012-10-11 16:35:03 -0700 Puppet (err): Unable to set ownership of log file
2012-10-11 16:35:03 -0700 Puppet (info): Loading facts in /Users/trobrock/.puppet/modules/homebrew/lib/facter/has_compiler.rb
2012-10-11 16:35:05 -0700 Puppet (info): Loading facts in /Users/trobrock/.puppet/modules/homebrew/lib/facter/has_compiler.rb
2012-10-11 16:35:06 -0700 Puppet (info): Applying configuration version '1349998504'
2012-10-11 16:35:07 -0700 Puppet (err): Could not prefetch package provider 'brew': Could not list packages: Execution of '/usr/local/bin/brew list --versions' returned 1: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path': couldn't find HOME environment -- expanding `~/Library/Caches/Homebrew' (ArgumentError)
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path'
	from /usr/local/Library/Homebrew/global.rb:20:in `cache'
	from /usr/local/Library/Homebrew/global.rb:39
	from /usr/local/bin/brew:17:in `require'
	from /usr/local/bin/brew:17

/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:59:in `rescue in package_list'
/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:56:in `package_list'
/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:85:in `instances'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/provider/package.rb:4:in `prefetch'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:284:in `prefetch'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:272:in `prefetch_if_necessary'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:376:in `traverse'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:99:in `evaluate'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/resource/catalog.rb:144:in `apply'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:122:in `block in apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:179:in `block in benchmark'
/Users/trobrock/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:178:in `benchmark'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:121:in `apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:179:in `run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:265:in `apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:213:in `main'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:146:in `run_command'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `block (2 levels) in run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:438:in `plugin_hook'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `block in run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:500:in `exit_on_fail'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util/command_line.rb:76:in `execute'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/bin/puppet:10:in `<top (required)>'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/bin/puppet:19:in `load'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/bin/puppet:19:in `<main>'
2012-10-11 16:35:07 -0700 /Stage[main]//Package[rsnapshot] (err): Could not evaluate: Could not list packages: Execution of '/usr/local/bin/brew list --versions rsnapshot' returned 1: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path': couldn't find HOME environment -- expanding `~/Library/Caches/Homebrew' (ArgumentError)
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path'
	from /usr/local/Library/Homebrew/global.rb:20:in `cache'
	from /usr/local/Library/Homebrew/global.rb:39
	from /usr/local/bin/brew:17:in `require'
	from /usr/local/bin/brew:17

/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:59:in `rescue in package_list'
/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:56:in `package_list'
/Users/trobrock/.puppet/modules/homebrew/lib/puppet/provider/package/homebrew.rb:41:in `query'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/provider/package.rb:19:in `properties'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/type/package.rb:178:in `retrieve'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/type.rb:675:in `retrieve'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/type.rb:693:in `retrieve_resource'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction/resource_harness.rb:32:in `perform_changes'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction/resource_harness.rb:133:in `evaluate'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:49:in `apply'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:84:in `eval_resource'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:104:in `block (2 levels) in evaluate'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:348:in `block in thinmark'
/Users/trobrock/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:347:in `thinmark'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:104:in `block in evaluate'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:383:in `traverse'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/transaction.rb:99:in `evaluate'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/resource/catalog.rb:144:in `apply'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:122:in `block in apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:179:in `block in benchmark'
/Users/trobrock/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:178:in `benchmark'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:121:in `apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/configurer.rb:179:in `run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:265:in `apply_catalog'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:213:in `main'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application/apply.rb:146:in `run_command'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `block (2 levels) in run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:438:in `plugin_hook'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `block in run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util.rb:500:in `exit_on_fail'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/application.rb:346:in `run'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/lib/puppet/util/command_line.rb:76:in `execute'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/gems/puppet-3.0.0/bin/puppet:10:in `<top (required)>'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/bin/puppet:19:in `load'
/Users/trobrock/.rvm/gems/ruby-1.9.3-p125/bin/puppet:19:in `<main>'
2012-10-11 16:35:07 -0700 Puppet (notice): Finished catalog run in 0.58 seconds
```