Removing irrelevant directories