Fix test makedirs (rmtree the topmost dir)