cfg.dirs is now a GSList, handle add and remove directories correctly