bash: Add function follow_upstream