Fixed bug with recursive directory copy method