Add index to path names.