Patch from Henrik Goldman to eliminate extra call to update-alternatives