Fixed bug that deletes the directory before all files are moved.

Only in the case of more than one file per directory.