Pad index with leading zeros in filename