Store generated file in RUNDIR

It is possible that the CONFDIR is on a read only fs, so
use RUNDIR for generated file.