sb/config: Fix os and arch conditional logic.
Correctly split the argument list and check each element.
Closes #3743