Fix detecting bools from default value

Regex was in double quotes, so backslash-escaped magic metachars were not actually being escaped