Updated install function to sniff distro and use the specific package manager