restore current directory after threadexec.
this is dodgy.
1 file changed