Fix some missing pieces in the Regex mode.
Cosmetic bugfix: mask_done() was called a tad too early so
final status would be empty for short runs.