- Stored the process report in a local variable before reading the header for host detection. - Updated the type assertion so the header path is optional and guarded. - Kept the Linux zig target selection logic unchanged while fixing the runtime check.