fix file reading in latest node.js