Fix for macOS and calling executable with mono in test runner.