Add an os.chdir()-wrapper that keeps track of OLDPWD/PWD, for programs that rely on those variables being correct.
Add an os.chdir()-wrapper that keeps track of OLDPWD/PWD, for programs that rely on those variables being correct.

preed/quickrelease