Fixes processing of multiple files

Grunt task is marked as done when all the files have been processed.
This should prevent the Grunt task to finish right after the first file.