Use dynamically defined locations of the stop and wait scripts.