clean up getTempDir(), add config values for temp dir and log file