fixed distro and machine  parsing and  bash tests.