Make runner work well with PhantomJS.