Fix global config load

This fix prevents an error when `$HOME` is not set in the build environment. (Then `~` can not be expanded)

I'm not sure how to write a unit test for this, so I didn't. Tried to use the branch on environments with and without `$HOME`, which worked as expected.
Ok, thanks for noticing. I will try to create something cross-OS.