allow tmp dir customization via env variable