fix ignoreFile problem in the new version node.js