scripts/make-repo: Fix a couple of errors waiting to happen.