mmg: pass mkvmerge's file identification output via --redirect-output and a temporary file

Fixes #959.