Fix symlink directories on POSIX.