scripts: ensure that ipkg-make-index.sh exits successfully