Fix for resource_cmd_spec

Was checking for empty stderr in a few places, and also setting an
iptables rule that doesn't work on deb7 and ubuntu trusty.
Merge pull request #412 from mhaskel/resource_cmd_spec_fix

Fix for resource_cmd_spec