fixed silent removing of the directory