tmpDir should be a property and simply be set via config, not in constructor.