added distro autodetection