Avoid premature exit when no patent files - there might still be app files to process.
Change from network-based uuid to full random uuid

Got a conflicting key once.