Use cmd status instead of parsed output for wait's status