Rewrite for yeoman-generator 0.17.x

simpler way: `this.dest.writeJSON(bower)`