another fix for rmtree