Fix bug with cleaning up symlinks