tests: Make run-tests.py distcheck friendly