pub fn expand_path<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Expands a path that may contain a tilde for the home directory