Fix detection of a PE-based PuppetDB

There is a bug in the detection of whether or not the environment is a PE-based PuppetDB environment when checking on the is_pe fact.

These commits add an initial spec test to show both the regular and PE-style behaviors that are expected and then a second commit which corrects the behavior.

Thanks!