* made open_mc_dir more cross-platform