remove undesirable hack from --pattern

@andreistefanescu please review