Run posthook after saving bower.json, fixes #1471

Please review and merge

#1471
inconsistent space or no space after `function`