It would be nice if we could simply restrict the scope of all those file handling commands to $mircdir. This would make a much safer scripting environment while not limiting legitimate scripts, but I'm afraid it would require too much effort on Khaled's side.