Fixes #278. Incorrect replacing in script inlining.