Fix type-guessing bools from default value

Regex was enclosed in double quotes, so backslash-escaping of metachars was ineffective. Switch to single quotes.