Fix detection of upstream repo in release script