fixed support for various ruby paths; new method prevents extra new line characters from being passed into rebuild-iptables.erb template