Rewrite for yeoman-generator 0.17.x

Me too, I didn't like this either.