Also clean 3rdparty git repos out

This solves libuv-related subprocess hang problems.
Handle panda reinstall more robustly

This always tries to reinstall the old state if it's there, not just if it was
there at the start of the current compilation attempt. Avoids data loss if a
compile fails for whatever reason.