AMBARI-7464. Make stack_advisor code more human readable - additional changes (srimanth)