check-update-alternatives: strip comments before looking for hints

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>