sudo keep_env compatibilty with upstream and other distributions