Checking directory existence has been added in function Path.rmtree