Add getTempDir

$config['tempDir'] is no longuer requiered