pub fn resolve_path(cwd: &Path, raw: &str) -> PathBuf
Resolve a user-provided path: expands ~ to home dir, resolves relative paths against cwd.
~