rpearce: Support sub-environments when using cross environment dependencies