> File.expand_path('~/.my_config_file').
Why not ENV['HOME'] ?