Remove dependency on global Config var in tempdir
This change releases production code of the tempdir package from the dependency on the global config.Config var. The repository package changed to support it by passing internal dependency as a parameter to the affected functions.
Part of: #2699 (closed)