Added the `/g` flag to sed fixes #7

Without `/g` it stops at the first instance of require on a line.

Do I need to commit a built version of `dist/indexed.js`? I built a version locally, but it has many more changes in it than this change produces.