fixing replaceAll bug on windows with escaping paths, changed replaceAll...

...() to replace()