Better regex matching for Thunderbird dialogs. Fixes luckrat/KeeFox#208