Rewrite for yeoman-generator 0.17.x

`this.indexFile = this.src.read('index.html')`