Use graceful-fs instead of fs to prevent EMFILE errors.