Return a CommandResult object instead of Hash

This fixes compatibility with SpecInfra 0.5.9 and newer.
Merge pull request #12 from dalen/master

Return a CommandResult object instead of Hash