`{os_info}-{architecture}-{pi.package}-{pi.version}` is used on line 59 again, maybe cache it?