Reorder chdir after switch to normal user.