make phantomjs work on darwin