Hardcode travis branch on dependencies, otherwise breaks pull request builds

Pull requests are always on a branch, and this branch
typically is not present on the installer.

This changes means we need to be careful when merging into 3.1
and master, but that's a necessary evil.