Fix RUNDIR and CONFDIR

Write and temp setting should only use RUNDIR.