Update gen-repo.sh to fix download from artifactory