GenCode - Create fewer tempdirs, and create them more securely