in a slightly better way for more platforms. The $HOME is only used for .curlrc atm, but the possible upcoming change of .netrc treatment may also need the home dir.