update serverspec os detection

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
update command return status to serverspec 2

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>