Determination of test executable extension fixed

Algorithm, that is used for forming extension of executable, that is started each time after test build, fixed. Now exe is added only for win32, instead of anything, except posix.