fix problem with regular expression under cygwin