Set iptables rule for rsyslog server. Fix get latest commit method for dynamic distro.