fix incorrect branch on forked repo, non-PR commits

The existing code doesn't permit repos forked from haskell-distributed
to run the travis scripts unless they are on master or development
branch. Branches with other names fail.