fix two pfilereaper logic bugs
eliminate dependency on bson.json_util