Run posthook after saving bower.json, fixes #1471

Please review and merge

#1471
weird code style.

```js
return scripts.preinstall(that._config, that._logger, that._dissected, that._installed, json);
```