Fix directory copy