Fix JSON recorder testing for EC2 systems.