Correct parsing file name because the last part contains the file index and not the second generally.