Fixup index rebuild script to be path independent and re-gen the index.