change how pgvm sets environment vars and checkout version