db in run dir
exec in tmp dir