You're right. To reproduce,

1) Set a new logging folder from Alt+O dialog.
2) //echo -a $logdir
3) Restart mirc.
4) //echo -a $logdir

You may want to report this to the Bugs board.