Use ENV['HOME'] instead of hardcoding home dir

There were some hardcoded paths that were causing the tests to fail for me. I presume they were not failing for you because they are specific to your home directory. I replaced those paths with ENV['HOME'] but in the future after we get the tests working under Ruby 1.9 and 2.0 perhaps we will want to replace this with Dir.home instead.