Fix zip files to find the root more correclty

If the root doesn't happen to be the first entry in the zip file this fails to pick the correct root.  Instead we just find all folders with no subfolders and pick the first one.