fix FileProcessor.prototype.replaceBlocks bug

In FileProcessor.prototype.replaceBlocks,the replacement contains$&(special character),String.replace isn't work.