Add fix to detect older puppet while setting allow_virtual for > 3.6

This should resolve the problems in #122 without triggering the compatibility warnings in #140. Tested against Puppet 3.5, but no earlier.