add visitdir and PROCESS::chdir, retarget chdir