Added check to see if grunt.file.isFile before treating is as such