Run posthook after saving bower.json, fixes #1471
Merge pull request #1504 from bower/fix/hook-order

Run posthook after saving bower.json, fixes #1471