switching system("mkdir") to File::Path::make_path