Fix symlink handling