[Workaround] Auto-cancel redundant builds on the default branch

This script is really useful. Thanks!!

I added functionality to auto-cancel jobs within the last 10 minutes, otherwise allow them to keep running. If that is interesting to anybody, see