Add missing require('fs') call