fixed issue with copying empty dirs