Refs #5377 - Adapting for pulp 2.4 support

Fixes #4649 - support index file creation