[build-in-chroot.sh] Fix crash when multiple repos are used