Add dir name to ignores. Fix bug where multiple paths could cause root_ignores to leak memory or behave weirdly.