fix path handling in docs/conf.py

Only affects the doctests.