You're using `~` here and `ENV['HOME']` above. Use one or the other.