Revert and fix pull #168

This is a pull request that I mentioned here https://github.com/serverspec/serverspec/pull/168#issuecomment-22163540
I am new to serverspec. I would appreciate if you review my code.
Thank you.