Add problem index to dirname