Fixed the generator script to delete the temp folder