Change tmp folder implementation