Fixing bug in removing directory tree.