Bugfix: Don't delete what where supposed to keep

When flipping logic from what to keep to what to remove, a huge bug
showed up. Instead of figuring out what to keep, the script removed what
it was supposed to keep and left what it was supposed to remove.