Gruntfile.js: Make sure paths are unique /after/ having stripped off the index.html.
(cherry picked from commit 0f21e34b808cd48636f9254564e3908c3eb7f470)