builtin-am: auto-detect mbox patches