When checking for local jail pkg changes, just compare the list of installed packages to the current list in the hash. It might not catch when pkgs were simply updated (unless the update also involved adding/removing pkgs), but it is a lot better than always failing like it was previously doing.