runscript: use apps in INSTALLED_APPS to discover scripts

Change the runscript management command to use the INSTALLED_APPS settings variable to discover scripts to run. The old version only works with apps containing a models.py.