Fix to use SpecInfra::CommandResult

Ref: serverspec/specinfra#41