more robust mk_dir
adding backward compatible interactive option