Fix a bug of writing bower.json