[COOK-3843] Make cookbook 'sudo' compatible with Mac OS X

More details:
https://tickets.opscode.com/browse/COOK-3843

P.s. Also, I think this pull-request overlaps the previous: #34 [COOK-3643]