Automatic fix multiple reference paths in output .d.ts files

When there is multiple reference paths in output .d.ts files,
it fixed only the first one when using gulp-tsc v0.9.2.

I fixed it by adding flag `g` to regexp in replace().