Fixed calculation of total files size to copy