use $OLDPWD to cd to old pwd at the end of config

I previously used my own variable because I had forgotten
about $OLDPWD.