Fix path to the magic.mgc file for file capture function.