fix copying over directories