fix differences between Mac and Linux PhantomJS