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