pub fn build_path(path: &str) -> Result<PathBuf>
Expands the environment variables and user home directory in a given path.