allow cross-platform config support.

using path.resolve with `~/` will work in windows and *nix.  The prior version won't work in platforms without HOME specified... if you use windows, and haven't needed to add it, it may not exist.