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

Without `/g` it stops at the first instance of require on a line.