rpearce: Raise an exception when duplicate environments are found