fn build_path(cmd: &mut BuiltinCommand) -> Result<String, Error>