Fixed buffers not getting zero'd out in clone_dir()