Fixed detection of encrypted cookbooks. The old code did not seem to work
in Chef 10.18.2 so I added a check for the class as well.
Merge pull request #10 from maf23/encrypted-databag-detection-bug

Fixed detection of encrypted cookbooks.