Restructure code a bit

There is some redundant code in start_scheduler() when starting
scripts. Write start_scripts() to address this.

Change-Id: I1f6b9a66c7385bbb066cefdf0cfb4cb176d84805