pdf function now returns you to the $OLDPWD