Fix #423.  Substitution flags were being ignored in confirm substitution
mode.