puppet win cert restoration code now working; also split some of the path building into another function