Allow running test_buildhtml.py from anywhere, also with Python 3.