Fixed bug with recursively copying directories.