Allow catalogs with .json extension

In Puppet 3.2.x, the catalogs are written to the agents
data dir with the extension .json by default.

This commit ensures that you can perform diffs on these
catalogs.