Change buildslave's testPunctuation to not depend on the platform

As a side effect, it now effectively checks that individual arguments are passed properly, instead of just verifying their concatenation.

EDIT: did some refactoring, too.