fixing issue with release-as-git-repository for platforms with latest Git installed and when upstream repo is missing