Added distribution detection based on lsb_release to support different distros.