BTW, since mktexnam sources mktex.opt, $MT_MKTEXDIR is defined which I think should be used instead of $MT_TEXMFMAIN/web2c/mktexdir. I am attaching an updated patch. Thanks Ralf. I installed it in TL.