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