Make chdir invocations resistant against CDPATH
Remove PYTHONPATH magic from tests