Fix: should not stat directories

It solves the problem when it passes a directory to the `addFile` method and throw an exception.

My case is when using `inputFiles: ['**/*.js']` the folder `ember.js` matches the pattern and originates the error.