adding regeneration of index.txt after dist update