Hopefully the addition of -E to my applypatch script will mean that I won't have these kinds of leftovers in the future.