fix windows file.separator escaping in regex