pad the zero file name with the correct number of leading zeros