Distributing files now properly counts partitions