escape $ before performing regexp replace
Merge pull request #26 from warpech/escape

escape $ before performing regexp replace