Fix copying out directory.