use PWD instead of OLDPWD to track directory changes