Fix uploadArchives logic to determine repo location.