Refactored launch.scm run and monitor jobs code