Don't need `Dir[]` here, and its safe to call mkpath on directories that exist, so:

```rb
real.unlink if real.symlink? && real.readlink == link
real.mkpath
```