rmtree of external plugin dirs fixed