update phantomjs-testrunner.js for backwards compat

- Previous revision introduces system.stdout.write
- Older versions of PhantomJS (<1.9) still need to use fs.write