Use TRAVIS_BRANCH for branch name on travis-ci

MSP-9650

`git rev-parse --abbrev-ref HEAD` returned just 'HEAD' on travis-ci when
building master, so just use the branch name supplied by travis-ci
environment variables when available.