Moved makedirs to before run_tests.