Update the create_backpan_index.pl program.

This is what is used on the Gitpan server, plus some other fixups.