pub fn resolve_home_dir() -> PathBufExpand description
Resolves the user’s home directory cross-platform: HOME (Unix/macOS),
falling back to USERPROFILE (Windows), falling back to the current
directory if neither is set — without this fallback, Windows deployments
silently resolve config/credential paths to . (cwd) instead of erroring
or using the user’s actual profile directory.