Replace fs module with graceful-fs

To avoid `EMFILE, too many open files` error in large projects.

https://github.com/isaacs/node-graceful-fs