Use /bin/pwd.