Revert "Reordered arguments of put_file/diretory to be consistent with the rest of work_queue."
Somehow, I accidentally managed to undo a recent commit to dag.c.
This reverts commit 79bac4234768894a63236de278a08944d50f9b99.