os-prober: use make_dirs; misc tweaks.