Give JSON API more flexibility as to where it's run from

WordPress Trunk is in /srv/www/wordpress-trunk.dev but the test suite is somewhere else.