Fix race-condition when creating test_directory in test-base.cfg.

When running tests in parallel with `bin/mtest`, the line

```
 if not os.path.exists(test_directory): os.makedirs(test_directory)
```
causes a race condition if the directory has already been created by another worker. Using `try...except` instead avoids this race condition.

@deiferni

/cc @jone