fix bower.json changes when exit by error