fix ignoreFile problem in the new version node.js

The ignore file is not working in node.js 0.10.22, just use a simple way to fix that.