stop relying on is_standard_module to avoid having internal dependencies in external deps report. Closes #124660 [applied]