Tighten up name/Path comparisons.

Per @mossprescott’s comment on 7ad7db1674484b50e5872a59427eccc59bbe9ee9