Refactored to avoid postinstall hook and use a Grunt task instead