Create index when building the repository

Bundler needs the index for file:// sources.