Add missing fs require, as per comment in #449