Fix issues with nc in run_tests.sh