run_cmd is a variable that is either "cmd.run_all" by default or "cmd.run" for those functions that specify it, eg. line 412 (new file).
I did not investigate the difference between the two, I merely tried to make sure I did not change the way it was written before.