Change how ENV vars are set on link to avoid loop