Set env["PWD"] after chdir