Changing loader generator to return a list of discovered sccripts