Fix symlink bugs.