properly clean up symlinks