Fix update-alternatives for *-headless packages