[rundir] use local in more places; make locals lowercase