I haven't followed what the goal is here, but `lsb_release --id` and a `case...esac` statement is another way to achieve this.