Fixes processing of multiple files

Grunt task is marked as done when all the files have been processed.