common: fixing lsb-release detection

Instead of reading /etc/lsb-release, let's use to lsb_release program to
avoid errors based on non existing files or failing grep.