travis: try to automatically determine best subhask branch to use.