Update test runner assertions

Recent vagrant is adding invisible control characters to the output of
`vagrant ssh -c` commands. This was breaking the string comparisons.
Invoking the conditional directly in the VM and checking the exit status
is more robust.