Fix phantomjs detection.