Find appropriate upstream branch in case current isn't remote.