[I do this check in a simpler way in the new cookbook](https://github.com/Kabam/chef-mongodb-ebs/commit/3d71531588be84ba7006b24a7b77959371052a21#diff-66dabbc3c35903a440e9e3ceceaae325R119). Let me know if it's still hard to grok.