replace ENV['HOME'] with Ruby stdlib in 2 Casks

Directly using environment variables in the Cask does not seem like a great idea in principle.

After this change, `gpgtools.rb` still uses `ENV['GNUPGHOME']`.