Fixed error with rmtree