new version that detects distro and use package manager accordingly