Update index.js

In production-mode: call cb() of Grunt-Hook only after grunt:prod finished.

(fixing for https://github.com/balderdashy/sails/issues/1872)