Check master is reachable before chcking master is alive

Update scripts which checks rosmaster is alive