fix $OLDPWD to allow the correct semantics of "cd -" when using "p cd somewhere"