Fixes branch checking logic for Travis CI deploys.