Replace update-alternatives handler with tasks