Check for both simplejson and json at the same time.

This avoids accidentally failing simply because 'simplejson' isn't
available (but 'json' might be, but we aborted too early)

This fixes tests broken by the previous commit.