support newer interface for node-fs readFile function