pub fn expand_config_path(raw: &str) -> PathBuf
Expand a leading ~ and any $VAR / ${VAR} in a config path; unset variables expand to nothing, as in a shell.
~
$VAR
${VAR}