updated check_ambari.pl
updated lib