issue #23241: the frozen scripts must come before the foundation scripts