rpearce: Fix duplicate alert to only go of for duplicate stacks in the
same environment, not at a higher shared stack level.