Added --directory option for copying directories