Changed how we test for plenv existance.