Use ENV['HOME'] instead of '~'