make index.html substitution work
The file replacement method for handling was apparently altered in Angular8 and no longer works for index.html files. https://github.com/angular/angular-cli/issues/14599 This MR implements the suggested fix from that issue page.