Reinstate env var set command

It was inadvertently removed in the previous commit