Chdir into root dir to prevent access errors after uid change (refs #3780)