sudo in the wrong place for env vars