MAINT: update runtests.py from scipy

The additional chdir before starting the test allows tests that launch
subprocesses to run.

Fixes gh-3909
Merge pull request #3910 from pv/runtests-fix

MAINT: update runtests.py from scipy