Fixed sudo command ignoring environment variables.

Here I described the problem: https://discourse.mailinabox.email/t/failed-install-on-openvz-container/171/6?u=m4rcs