Fixed temporary folder creation