Fix branch detection in Travis