Invalid regular expression of path separator under windows