If your going to use a relative path then thats pretty much what you should expect to be returned when asking what the $mircdir is.

and of course....
X:\folder\mirc6.21\..\..\test\ IS X:\test\ anyway!