Resolve the PATH expansion overlaps, preserve inherited duplicate blocks, support arbitrary PATH casing, and add a real Windows duplicate-environment launcher test.