Fixed error with tmp folder creation.