Fix (and test) branch detection on Travis CI

[#69707496]