(copy_dir_dir): get rid of extra memory allocation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(move_dir_dir): get rid of extra memory allocation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>