[PLAT-6280] Create "temp" folder with correct permissions and set environment variables