Fix trailing comma problem in generated bower.json.