fix for idiocy in build-index.sh