Add support for removing directories from the list
Fix var name