Fixed deprecation warnings for use of Chef::ShellOut

Fixes COOK-2488 and COOK-2415.

See also pull request #37 and #46.

Cheers!