restore test/lib and src after bad shutdown