Fixed command not found error during tests on windows

Added missing cmdSuffix in tests. Previously it was used only in the actual code. This fixes quite a number of tests on Windows.
Are you sure about this? It would probably mean that we duplicate all that code just for that regex, and place it in different files for windows/*nix.