Fix order of gruntfile for template comp + requirejs (bug 1027126)