fixed removal of nested dirs