Branches with name "master" anywhere in them being blocked

- Don't assume the master branch is always there.
- Change the way the master branch is checked, it was not pulling down any branches with the name "master" in them ("fix_master", "adjust_puppetmaster" etc etc).