Avoid using Mixlib::ShellOut.error?

The `error?` method was introduced relatively recently (September 2013) and
using it breaks compatibility with older Chef versions. Substitute its
implementation instead.

resolves #47
Fix bug in line detection of iptables-restore --test.
Merge pull request #48 from ambientsound/master

Fix bug in line detection of iptables-restore --test.