Fix bugs on detect OS distro information