Updated run_periodically so that it runs scripts in alphabetic order