Fixed script loading that got broken after a recent cleanup.