Fix bugs in controller causing master flag set for all jobs when multiplexing for build environment, and another bug in cancel_superceded_jobs(), #118.