Corrected use of --afterok_pattern
put modifications for mb command into pipeline-rewrite branch