fix problem with regular expression under cygwin

instead of using replace with regular expression use simple replace 
the problem seen on windows environment