Fixed detect backslash in pattern
cosmetics