fix FileProcessor.prototype.replaceBlocks bug

In FileProcessor.prototype.replaceBlocks,the replacement contains$&(special character),String.replace isn't work.
just replace it with an escaped version:

```js
replacement = replacement.replace(/\$/g, '\\$');
```