Fix issue where not all pkgs_to_not_remove are checked.

pkgs_to_not_remove gets modified during the for loop
and so skips some packages.

This fix causes the loop to re-evaluate remaining
packages without skipping any.
Merge pull request #4 from andytson/pkgs_to_not_remove_fix

Fix issue where not all pkgs_to_not_remove are checked.