Add check for upstream remote to upgrade script