Update buildIndex.sh