Fix removing directory.