Preserving environment for sudo command