Fix sys dependency for processDiagnosticMessages.ts