removing some print statements and more check on whether instances support rsyslog