fix rmtree directory pass-through.