Adds support for TMPDIR Configuration

Helps with https://github.com/docker/docker/issues/4396

The parameter was there in the sysconfig file, this allows it to be exposed as a class param.
What's the rationale behind this change? I'm not sure it relates to the other changes so difficult to follow.